package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 中台-账号所属权限
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AdminUserGroup extends Model<AdminUserGroup> {

    private static final long serialVersionUID=1L;

    @TableId(value = "group_id", type = IdType.AUTO)
    private Integer groupId;

    private String groupName;

    /**
     * 初始权限为1,5,17,18,22,23,24,25
     */
    private String groupRole;

    /**
     * 创建人ID
     */
    private Integer ownerId;

    private String groupDesc;


    public static final String GROUP_ID = "group_id";

    public static final String GROUP_NAME = "group_name";

    public static final String GROUP_ROLE = "group_role";

    public static final String OWNER_ID = "owner_id";

    public static final String GROUP_DESC = "group_desc";

    @Override
    protected Serializable pkVal() {
        return this.groupId;
    }

}
